#!/bin/bash

# 清除当前目录下的 data 目录内容
if [ -d "./data" ]; then
    echo "Deleting data directory contents..."
    rm -rf ./data/*
else
    echo "Data directory does not exist."
fi

# 检查 setup/sequence_counter.txt 文件是否存在，并将其内容重置为 1
if [ -f "./setup/sequence_counter.txt" ]; then
    echo "Resetting sequence_counter.txt to 1..."
    echo "1" > ./setup/sequence_counter.txt
else
    echo "setup/sequence_counter.txt file does not exist."
fi

echo "Reset completed."

